package com.woniuxy.light_smart.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class LoginDto {
    @NotBlank(groups = loginGroups.class ,message = "电话或邮箱不能为空")
    private String tel;
    @NotBlank(groups = loginGroups.class,message = "密码不能为空")
    private String pwd;
    private String uuid;
    @NotNull(groups = loginGroups.class,message = "请输入验证码")
    private String card;

    /**
     * 登录时进行校验的组接口,一旦加了小组，就得给要验证的全加，并且在控制层加上相应的小组.class
     */
    public interface loginGroups{

    }
}
